<template>
<div class="header">
<div class="header-logo">
  <a-image :width="32" :height="28" :src="logo"/>
  <span>{{ companyShortName }}</span>
</div>
<div class="header-other">
  <span>{{ headerName }}</span>
  <div class="slot-box">
    <slot></slot>
  </div>
</div>
</div>
</template>

<script lang="ts">
import config from "@/config/index"
import logo from "@/assets/image/logosd.png"

import {defineComponent} from "vue";

export default defineComponent({
  setup(){
    return{
      companyShortName: config.companyName,
      headerName: config.headerTitle,
      logo
    }
  }
})
</script>

<style lang="scss" scoped>
.header{
  display: flex;
  width: 100%;
  height: 72px;
  border-bottom: 1px solid #ebedf0;
  .header-logo{
    display: flex;
    width: 220px;
    height: 72px;
    padding: 0 26px;
    align-items: center;
    justify-content: center;
    background: #294181;
    >span{
      font-size: 30px;
      color: #FFFFFF;
      font-family: PingFangSC-Semibold, PingFang SC;
    }
  }
  .header-other{
    display: flex;
    flex: 1;
    height: 72px;
    align-items: center;
    background: #F7F9FC;
    padding: 0 20px;
    >span{
      width: 1280px;
      height: 42px;
      font-size: 30px;
      font-family: PingFangSC-Semibold, PingFang SC;
      font-weight: 600;
      color: #061B48;
      line-height: 42px;
    }
    .slot-box{
      width: 200px;
      height: 72px;
      margin-left: auto;
      background: antiquewhite;
    }
  }
}
</style>
